<?php
/**
 * Created by PhpStorm.
 * User: zing
 * Date: 2018/10/12
 * Time: 23:21
 */

//Returns the resource type
print_r(get_resource_type(fopen('./get_resource_type.php','r')));
echo PHP_EOL;
print_r(get_resource_type(curl_init('http://baidu.com')));
echo PHP_EOL;
echo get_resource_type(xml_parser_create(''));
